<?php echo form_open('admin/change_password/'.$this->session->userdata("admin_id"), array('id' => 'register')); ?>
<div id="content">
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    </div>
    <?php endif; ?>
        <div id="title_content"><?php echo lang("change_pass")." ".lang("password")?></div>
    <?php echo form_open_multipart('admin/change_password/'.$this->session->userdata("admin_id")); ?>
        <table class="form_content" width="100%">
        <tr>
            <td>Mật khẩu hiện tại</td>
            <td>
            	 <?php if (form_error('old_pass') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('old_pass'), '<p>', '</p>'); ?></div> <?php } ?>
               <input type="password" class="form_input" name="old_pass" size="35" maxlength="40" value="<?php echo set_value('old_pass'); ?>"/></td>
        </tr>
        <tr>
            <td>Mật khẩu mới</td>
            <td>
                <?php if (form_error('password') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('password'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="password" class="form_input" name="new_password" size="35" maxlength="40" value="<?php echo set_value('"password"'); ?>"/></td>
        </tr>
      	<tr>
            <td>Nhập lại mật khẩu mới</td>
            <td>
                <?php if (form_error('confirm_password') != "") {
                ?> <div class="form_error"><?php echo generate_pure_text(form_error('confirm_password'), '<p>', '</p>'); ?></div> <?php } ?>
                <input type="password" class="form_input" name="confirm_password" size="35" maxlength="40" value="<?php echo set_value('confirm_password'); ?>" /></td>
        </tr>
  
        <tr>
            <td colspan="2"><input type="submit" name="submit" value="Cập nhật" class="form_submit" /></td>
        </tr>
    </table>
    <?php echo form_close(); ?>
</div>